
import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        int[] hash = new int[26];
        char[] str = in.next().toCharArray();
        int max = 0,min = 1000;
        for (int i = 0; i < str.length; i++) {
            hash[str[i] - 'a'] ++;
        }
        for (int i = 0; i < 26; i++) {
            if(hash[i] != 0){
                max = Math.max(max,hash[i]);
                min = Math.min(min,hash[i]);
            }
        }
        if(PrimeCheck(max-min)){
            System.out.println("Lucky Word");
            System.out.println(max-min);
        }else {
            System.out.println("No Answer");
            System.out.println(0);
        }
    }
    private static boolean PrimeCheck(int x){
        if(x < 2) return false;
        for (int i = 2; i <= Math.sqrt(x); i++) {
            if(x % i == 0){
                return false;
            }
        }
        return true;
    }

}